body, h1, h2, h3, h4, h5, h6, hr, p, blockquote,
dl, dt, dd, ul, ol, li,
pre,
fieldset, lengend, button, input, textarea,
th, td {
  margin: 0;
  padding: 0;
  font-weight: 400;
}

body,
button, input, select, textarea {
  /* for ie */
  font: 14px/1 tahoma, arial, 'Hiragino Sans GB', '\5FAE\8F6F\96C5\9ED1', sans-serif;
}

address, cite, dfn, em, var, i {
  font-style: normal;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
}

q:before, q:after {
  content: '';
}

fieldset, img, input {
  border: none;
}

button, input, select, textarea {
  font-size: 100%;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input {
  outline: none;
}

input:focus {
  outline: none;
}

a, img, div, span, i, section {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/*@font-face {
  font-family: "iconfont";
  src: url("http://at.alicdn.com/t/font_ot2a9rn0wgffxbt9.eot?t=1493260854459");
  src: url("http://at.alicdn.com/t/font_ot2a9rn0wgffxbt9.eot?t=1493260854459#iefix") format("embedded-opentype"), url("http://at.alicdn.com/t/font_ot2a9rn0wgffxbt9.woff?t=1493260854459") format("woff"), url("http://at.alicdn.com/t/font_ot2a9rn0wgffxbt9.ttf?t=1493260854459") format("truetype"), url("http://at.alicdn.com/t/font_ot2a9rn0wgffxbt9.svg?t=1493260854459#iconfont") format("svg");
}*/
@font-face {
    font-family: 'iconfont';
    src: url(data:font/truetype;charset=utf-8;base64,AAEAAAANAIAAAwBQRkZUTYUfUdEAAAiYAAAAHEdERUYAKQAMAAAIeAAAAB5PUy8yPHFIHgAAAVgAAABWY21hcOYlz/8AAAHIAAABUmdhc3D//wADAAAIcAAAAAhnbHlmsJwNHgAAAywAAAJ0aGVhZBKgbsQAAADcAAAANmhoZWEH5AOPAAABFAAAACRobXR4DV0APAAAAbAAAAAWbG9jYQHiAPgAAAMcAAAADm1heHABFgB1AAABOAAAACBuYW1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vAG4AdAAAaWNvbmZvbnQAAGkAYwBvAG4AZgBvAG4AdAAAaWNvbmZvbnQAAFYAZQByAHMAaQBvAG4AIAAxAC4AMAAAVmVyc2lvbiAxLjAAAGkAYwBvAG4AZgBvAG4AdAAAaWNvbmZvbnQAAEcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAAcwB2AGcAMgB0AHQAZgAgAGYAcgBvAG0AIABGAG8AbgB0AGUAbABsAG8AIABwAHIAbwBqAGUAYwB0AC4AAEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC4AAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAGh0dHA6Ly9mb250ZWxsby5jb20AAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAEAAgECAQMBBAZ6aXl1YW4HY2hleGlhbwd4aWFuZ3BpAAAAAAAAAf//AAIAAQAAAAwAAAAWAAAAAgABAAMABQABAAQAAAACAAAAAAAAAAEAAAAA1aQnCAAAAADXvZVkAAAAANe9lWQ=) format('truetype');
    font-weight: normal;
    font-style: normal;
}
.iconfont {
  font-family:"iconfont" !important;
  font-size:16px;
  font-style:normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-chexiao:before { content: "\e60b"; }

.icon-ziyuan:before { content: "\e602"; }

.icon-xiangpi:before { content: "\e629"; }
/*.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-rect:before {
  content: "\e67e";
}

.icon-demo:before {
  content: "\e6e9";
}

.icon-cancel:before {
  content: "\e60b";
}

.icon-round:before {
  content: "\e6c6";
}

.icon-line:before {
  content: "\e63c";
}

.icon-symmetry:before {
  content: "\e60a";
}

.icon-pencil:before {
  content: "\e693";
}

.icon-palette:before {
  content: "\e60f";
}

.icon-width:before {
  content: "\e7a4";
}

.icon-eraser:before {
  content: "\e600";
}*/

html {
  height: 100%;
}

body {
  height: 100%;
  background-color: #fff;
}

.show {
  display: block !important;
}

.hide {
  display: none !important;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  background-color: #fff;
  border-top: 20px solid #e8e8e8;
  border-bottom: 20px solid #e8e8e8;
}

.tool-bar {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  /*position: absolute;*/
  /*bottom: 0;*/
  /*left: 0;*/
  width: 100%;
  border-top: 1px solid #ddd;
  /*margin-top: 2%;*/
  background-color: #fff;
  padding: 0 2%;
  box-sizing: border-box;
}

.tool-bar .tool_Item{
  flex: 1;
  text-align: center;
  color: #999;
  padding: 2%;
  box-sizing: border-box;
}
.tool-bar .tool_Item img{
  width: 80%;
  border-radius: 14px;
  margin-bottom: 6px;
}

.tool-bar .iconfont {
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
}

.tool-bar .iconfont:after {
  content: '';
  position: absolute;
  height: 100%;
  width: 1px;
  background-color: #ddd;
  top: 0;
  right: 0;
  -webkit-transform: scaleX(0.5);
      -ms-transform: scaleX(0.5);
          transform: scaleX(0.5);
}

.tool-bar:last-child:after {
  display: none;
}

.icon-palette {
  position: absolute;
  top: 30%;
  left: 4%;
  font-size: 34px;
  line-height: 30px;
}

.icon-chexiao {
  font-size: 24px;
  line-height: 24px;
  /*position: relative;*/
  /*top: 56px;*/
  /*right: 10px;*/
  margin-right: 20px;
  color: #595959
}

.icon-xiangpi {
  font-size: 24px;
  line-height: 24px;
  /*position: relative;*/
  /*top:56px;*/
  /*right: -10px;*/
  margin-right: 20px;
  color: #595959
}
.clear{
  font-size: 24px;
  line-height: 24px;
  /*position: relative;*/
  /*top:56px;*/
  /*right: -35px;*/
  color: #595959;
  font-weight: bold;
}

.palette {
  position: absolute;
  /*bottom: 56px;*/
  /*right: 0;*/
  height: 72px;
  width: 0;
  transition: width .5s ease-in-out;
  padding: 10px 4%;
  box-sizing: border-box;
  overflow: hidden;
  border-top: 2px solid #e8e8e8;
  background-color: #fff;
}

.palette .bar {
  width: 100%;
  height: 34px;
  padding: 5px 2px;
  border-radius: 5px;
  -webkit-animation: show-left .5s ease-in-out;
          animation: show-left .5s ease-in-out;
  overflow: auto;
  background-color: #fff;
  border: 1px solid #fff;
}

.palette .scroll {
  *zoom: 1;
  width: 894px;
}

.palette .scroll:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: '';
  clear: both;
  height: 0;
}

.palette .item {
  float: left;
  width: 34px;
  height: 34px;
  border: 1px solid #eee;
  margin: 0 2px;
  border-radius: 4px;
}

.palette-show {
  width: 100%;
}

.palette-show .bar {
  border: 1px solid #dfdfdf;
}

@-webkit-keyframes show-left {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes show-left {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.red {
  background-color: #f44336;
}

.pink {
  background-color: #e91e63;
}

.purple {
  background-color: #9c27b0;
}

.deep-purple {
  background-color: #673ab7;
}

.indigo {
  background-color: #3f51b5;
}

.blue {
  background-color: #2196f3;
}

.light-blue {
  background-color: #03a9f4;
}

.cyan {
  background-color: #00bcd4;
}

.teal {
  background-color: #009688;
}

.green {
  background-color: #4caf50;
}

.light-green {
  background-color: #8bc34a;
}

.lime {
  background-color: #cddc39;
}

.yellow {
  background-color: #ffeb3b;
}

.amber {
  background-color: #ffc107;
}

.orange {
  background-color: #ff9800;
}

.deep-orange {
  background-color: #ff5722;
}

.brown {
  background-color: #795548;
}

.grey {
  background-color: #9e9e9e;
}

.blue-grey {
  background-color: #607d8b;
}

.black {
  background-color: #000;
}
 

.operation{
  position: relative;
  width: 100%;
}

.width {
  position: relative;
  top: 70px;
  left: 0;
  height: 40px;
  width: 0;
  transition: width .5s ease-in-out;
  padding: 0 20px 0 20px;
  box-sizing: border-box;
  overflow: hidden;
  display: inline-block;
}

.width .icon-width {
  position: absolute;
  bottom: 1px;
  left: 10px;
  font-size: 30px;
  line-height: 30px;
}

.width .bar {
  display: inline-block;
  width: 80%;
  height: 30px;
  border-radius: 5px;
  -webkit-animation: show-left .5s ease-in-out;
          animation: show-left .5s ease-in-out;
  overflow: auto;
  background-color: #fff;
  border: 1px solid #fff;
  /*margin-top: 5px;*/
  vertical-align: middle;
}

.width .range {
  width: 90%;
  font-size: 14px;
  font-weight: bold;
  height: 6px;
  display: block;
  margin: 5px auto;

}
.width .range{ 
    margin-top: 12px;
          outline: none; 
    -webkit-appearance: none;/*清除系统默认样式*/  
     /*width:56% !important;  */
    background: -webkit-linear-gradient(#61bd12, #61bd12) no-repeat, #ddd;  
    background-size: 50% 100%;/*设置左右宽度比例*/  
    /*height: 3px;/*横条的高度*/  */
} 
 /*拖动块的样式*/  
.width .range::-webkit-slider-thumb {  
  -webkit-appearance: none;/*清除系统默认样式*/  
  height:16px;/*拖动块高度*/  
        width: 16px;/*拖动块宽度*/  
        background: #fff;/*拖动块背景*/  
  border-radius: 50%; /*外观设置为圆形*/  
  border: solid 1px #ddd; /*设置边框*/  
} 

.width-show {
  width: 64%;
}

.width-show .bar {
  border: 1px solid #dfdfdf;
}

.demo-bar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  -webkit-animation: slide-left .5s ease-in-out;
          animation: slide-left .5s ease-in-out;
  display: none;
}

.demo-bar .main-bar {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  overflow: auto;
}

.demo-bar .img {
  display: block;
  width: 100%;
}

.demo-bar .close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 40px;
}

@-webkit-keyframes slide-left {
  0% {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes slide-left {
  0% {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

.widthWapper{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: inline-block;
  vertical-align: middle;
  position: relative;
}
#value1{
  width: 10px;height: 10px;
  border-radius: 50%;
  background-color: #000;
  display: inline-block;
  position: absolute;
  top: 50%;
  left:50%;
  margin-left: -5px;
  margin-top: -5px;
}

.save{
  width: 70%;
  height: 40px;
  line-height: 40px;
  background-color: #E70C39;
  color: #fff;
  text-align: center;
  margin: 80px auto 0;
  border-radius: 8px;
  letter-spacing: 10px;
  padding-left: 20px;
  box-sizing: border-box;
  /*font-size: 18px;*/
}

.actived{
  border: 1px solid #ccc;box-shadow: 2px 2px 10px #333;
}

#tool2{
  display: inline-block;
  width: 34%;
  height: 40px;
  position: relative;
  top: 70px;
  right: 10px;
  vertical-align: top;
}

@media screen and (max-width:375px){/*宽度小于等于375,同理*/
  .width{
    padding: 0;
  }
  .icon-chexiao , .icon-xiangpi{
    margin-right:10px;
  }
  #tool2{
    right: 0;
  }
}